package com.ruoyi.bizsys.mapper;

import java.util.List;

import com.ruoyi.bizsys.domain.LoanIouDeferred;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.bizsys.vo.LoanIouDeferredVo;
import org.apache.ibatis.annotations.Param;

/**
 * 延期借据Mapper接口
 *
 * @author wqg
 * @date 2022-06-09
 */
public interface LoanIouDeferredMapper extends BaseMapper<LoanIouDeferred>{
    List<Long> getProductDeferredIds(String loanSerialNo);

    LoanIouDeferred getDetailByDeferNo(long loanSerialDeferredNo);

    void updateByloanSerialNo(LoanIouDeferred loanIouDeferred);

    String getJieQingLiXi(String customerNo);

    String getJieQingFuWuFei(String customerNo);

    String getcurrentinterest(String customerNo);

    String getloanIouDeferredService(String loanSerialNo);

    /**
     * 筛选查询今天购买了延期金融产品的借据号
     * @param loanNos
     * @return
     */
    List<String> findTodayDeferredByLoanNos(@Param("loanNos") List<String> loanNos);


    /**
     * 根据借据号查找已购的延期金融包
     * @param loanNo
     * @return
     */
    List<LoanIouDeferred> findNormalDeferredByLoanNo(String loanNo);

    Integer getDeferredTotalDay(@Param("custNo") String custNo);

    String getContractNo(String serialNo);

    List<LoanIouDeferredVo> selectLoanIouDeferredList(LoanIouDeferred loanIouDeferred);
}
